using Net35.Xrm.Sdk;
using Net35.Xrm.Sdk.Query;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class SearchByKeywordsKbArticleRequest : OrganizationRequest
	{
		public string SearchText
		{
			get
			{
				if (base.Parameters.Contains("SearchText"))
				{
					return (string)base.Parameters["SearchText"];
				}
				return null;
			}
			set
			{
				base.Parameters["SearchText"] = value;
			}
		}
		public Guid SubjectId
		{
			get
			{
				if (base.Parameters.Contains("SubjectId"))
				{
					return (Guid)base.Parameters["SubjectId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["SubjectId"] = value;
			}
		}
		public bool UseInflection
		{
			get
			{
				return base.Parameters.Contains("UseInflection") && (bool)base.Parameters["UseInflection"];
			}
			set
			{
				base.Parameters["UseInflection"] = value;
			}
		}
		public QueryBase QueryExpression
		{
			get
			{
				if (base.Parameters.Contains("QueryExpression"))
				{
					return (QueryBase)base.Parameters["QueryExpression"];
				}
				return null;
			}
			set
			{
				base.Parameters["QueryExpression"] = value;
			}
		}
		public SearchByKeywordsKbArticleRequest()
		{
			base.RequestName = "SearchByKeywordsKbArticle";
			this.SearchText = null;
			this.SubjectId = default(Guid);
			this.UseInflection = false;
			this.QueryExpression = null;
		}
	}
}
